package com.example.yiqiuser.service.impl;

import com.example.yiqiuser.dao.LoginLogDao;
import com.example.yiqiuser.entity.LoginLog;
import com.example.yiqiuser.service.LoginLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ fileName:LoginLogServiceImpl
 * @ description:
 * @ author:xjd
 * @ createTime:2023/3/30 10:41
 * @ version:1.0.0
 */
@Service //添加服务层注解
public class LoginLogServiceImpl implements LoginLogService {

    //引入Dao层对象注入依赖
    @Resource
    private LoginLogDao loginLogDao;

    @Override
    public int addLoginLog(LoginLog loginLog) {
        return loginLogDao.addLoginLog(loginLog);
    }

    @Override
    public List<LoginLog> queryAll() {
        return loginLogDao.queryAll();
    }

}
